<!--{template header}-->
<link rel="stylesheet" type="text/css" href="/template/default/video.css" media="all" />

<div id="video_ad">
<img src="/template/default/video/ad.jpg" alt="" />
</div>
<script type="text/javascript">

var uid="$_SGLOBAL['supe_uid']";

function video_dig(ty,cid,vid){

	if(uid=='0'){
		alert('请先登录!');return false;
	}
	
	jQuery.post('video.php',{'videosharesubmit':'save','ty':ty,'cid':cid,'vid':vid,'formhash':'<!--{eval echo formhash();}-->'},function(j){
	msgwin('<div class="popupmenu_layer"><p>&nbsp;</p><p>'+j.msg+'</p></div>',1000);
		if(j.error==0){
			//showreward();
			jQuery('#dig_'+cid+'_'+ty).text(j.msg);
		}
		
	},'json')
}








</script>
<div id="v_left">

    <div id="v_play" class='mb21'>
        <script type="text/javascript" src="/js/swfobject.js"></script>
        <div id="v_play_video">

        </div>
		<script type="text/javascript"> 
            var s1 = new SWFObject("/js/flvplayer.swf","single","715","526","10");
            s1.addParam("allowfullscreen","true");
            s1.addVariable("file","$video[videourl]");
            s1.addVariable("image","$video[thumburl]");
            s1.addVariable("width","715");
            s1.addVariable("height","526");
            s1.write("v_play_video");
        </script>
        
        <div id="v_share" class='player_extra'>
		
		<div class="dig_bury_box">
		
			<a href="javascript:void(0)" onclick="video_dig(1,0,$video['videoid'])" id="btnDig" class="btn_dig" title="喜欢就挖一下吧"><i></i><em id='dig_0_1'>{if $video['dig']>0}$video[dig]{/if}</em></a>
			
			<a href="javascript:void(0)" onclick="video_dig(2,0,$video['videoid'])" id="btnBury" class="btn_bury" title="不喜欢？ 埋掉它"><i></i><em id='dig_0_2'>{if $video['bury']>0}$video[bury]{/if}</em></a>
			
		</div>
		
		<div class="share_box">
			<i class="share_text">转贴到</i>
			
			<a id="tweet_this" class="btn_share_td" title="转帖到土豆推" href="javascript:void(0)"><i class="icon"></i>土豆推</a>
			
			<div class="share_freq" id="shareFreq">
				<ul>
				<li class="share_site share_wb" id="freq_share_wb"><a href="javascript:void(0)" title="新浪微博"><i class="icon"></i>新浪微博</a></li>
				<li class="share_site share_xn" id="freq_share_xn"><a href="javascript:void(0)" title="人人网"><i class="icon"></i>人人网</a></li>
				<li class="share_site share_qz" id="freq_share_qz"><a href="javascript:void(0)" title="QQ空间"><i class="icon"></i>QQ空间</a></li>
				</ul>
			</div>
			
			<!-- <a id="shareMore" class="btn_share_more transition" href="javascript:void(0)" title="更多">更多</a> -->
		</div>
		
		<a id="addPlaylist" class="btn_playlist" title="把视频加入我的豆单" href="javascript:void(0)"><i>加豆单</i></a>
		<a id="addFavor" class="btn_favor" title="把视频加入私藏" href="javascript:void(0)"><i>私藏</i></a>
		<a id="download" class="btn_download" title="用iTudou下载视频" href="javascript:void(0)"><i>下载</i></a>
		<a id="report" class="btn_report" title="举报视频" href="javascript:void(0)"><i>举报</i></a>
		
		<a href="javascript:void(0)" onclick="setCopy(location.href)" class="btn_shareurl"></a>
		
		</div>


    </div>

    <div id='v_comment' class='opactitybg mb21'>
    <script type="text/javascript" src="/source/script_time.js"></script>
        <div id='v_comment' class='opactity'>
            <h2><p>分享精彩</p><span>把精彩的瞬间和揪心的悬念分享给好友</span></h2>
            <script type="text/javascript">
            function sendcomment(){
            
			
			if(uid=='0'){
				alert('请先登录!');return false;
			}
			
			var gd=jQuery('input[name=gd]:checked').val(),msg=jQuery('#vc_msg').val();
            
			if(gd==undefined){alert('请选择分享类型!');return false;}
			
			if(msg==''){alert('请输入说说!');jQuery('#vc_msg').focus();return false;}
			
			if(msg.length>200){alert('说说最多200字!');jQuery('#vc_msg').focus();return false;}
			
			if(msg.length<10){alert('说说最少10字!');jQuery('#vc_msg').focus();return false;}
			
			var f=jQuery('#v_sendform').serializeArray();
			
			jQuery.post('video.php',f,function(j){
				msgwin('<div class="popupmenu_layer"><p>&nbsp;</p><p>'+j.msg+'</p></div>',1000);
				if(j.error==0){
					jQuery('#vc_msg').val('');
				}
				
			},'json');
			
            return false;
            }
            </script>
            <form id='v_sendform' action="" method='post' onsubmit="return sendcomment()">
                <div class="gd mb10">
                <input type="radio" name="gd" id="gd1" value="看点" /> <label for="gd1">看点</label>
                <input type="radio" name="gd" id="gd2" value="悬念" /> <label for="gd2">悬念</label>
                <input type="radio" name="gd" id="gd3" value="有戏" /> <label for="gd3">有戏</label>
                <input type="radio" name="gd" id="gd4" value="乱说" checked='checked' /> <label for="gd4">乱说</label>
                
                </div>
                
                <div class="gdtime mb10">
                <span>时间：</span>
				
                <span class='bg'><button type='button'></button><input name="ktime1" type="text" id="vc_ktime1" value='6' />分<input name="ktime2" type="text" id="vc_ktime2" value='30' />秒</span>
                
                <span class='d'>到</span>
                
                <span class='bg'><button type='button'></button><input name="dtime1" type="text" id="vc_dtime1" value='8' />分<input name="dtime2" type="text" id="vc_dtime2"value='30' />秒</span>
                    <div class="clear"></div>
                </div>
                
                
                <div class="msg mb10">说说：<textarea name="msg" id="vc_msg" cols="30" rows="10"></textarea></div>
                
                <div class="bt"><button type="submit">提交并分享给好友</button></div>
                <div class="clear"></div>
				<input type="hidden" name="videosubmit" value="提交" />
				<input type="hidden" name="videoid" value="$video[videoid]" />
				<input type="hidden" name="id" value="$video[id]" />
				<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
            </form>
			
			
			<div id="vc_list">
			
			
			
			</div>
			<script type="text/javascript">
			ajaxget("video.php?ac=comment&id=$video['videoid']",'vc_list');
			</script>
			
        </div>
    </div>





</div>

<div id="v_right">
	
	<div id='v_fxlist' class="opactitybg mb21">
		<div id="v_menu">
			<ul>
			<li class='now'>介绍</li>
			<li>花絮</li>
			<li>看点</li>
			<li>悬念</li>
			</ul>
		</div>
		
		
		<div id='v_fxlist0' class="opactity ">
			<h2 class="tn">创意介绍</h2>
			<div id="v_about">$video['body'] <!-- <a href='javascript:void(0)'>隐藏</a> -->
			</div>
			
		
		</div>
		
		<div id="v_fxlist1" class="opactity hide">
			<h2 class="tn">花絮分享</h2>

			<ul id='v_hxlist'>
			<!--{loop $hxlist $vl}-->
				<li>
					<a class='img' href="video.php?id=$vl['videoid']"><img src="$vl['thumburl']" alt="" /></a>
					<p class="t">视频：$vl['title']...
</p>
					<p class="click"> $vl['hit']</p>
				</li>
				<!--{/loop}-->
			</ul>

		</div>
		
		<div id="v_fxlist2" class="opactity hide">
			<h2 class="tn">看点分享</h2>

			<ul id='v_kdlist'>
			<!--{loop $kdlist $value}-->
				<li>
					<a class='img' href="#"><img src="template/default/video/v2.jpg" alt="" /></a>
					<p class="desc">$value['msg']</p>

				</li>
				<!--{/loop}-->
			</ul>

		</div>
		
		<div id="v_fxlist3" class="opactity hide">
			<h2 class="tn">悬念分享</h2>

			<ul id='v_xnlist'>
			<!--{loop $xnlist $value}-->
				<li>
					<a class='img' href="#"><img src="template/default/video/v2.jpg" alt="" /></a>

					<p class="desc">$value['msg']</p>
				</li>
				<!--{/loop}-->
			</ul>

		</div>
		
		
<script type="text/javascript">

jQuery('#v_menu li').hover(function(){
	var i=jQuery(this).index();
	jQuery(this).addClass('now').siblings().removeClass('now');
	jQuery('#v_fxlist .opactity:eq('+i+')').show().siblings('.opactity').hide();
	
});


</script>		
		
		
	</div>
	
	<div id='v_fxtop5' class="opactitybg mb21">
		<div class="opactity">

			<h2 class='t'>分享排行</h2>
			
			<ul>
			<!--{eval $i=1;}-->
			<!--{loop $fxlist $key $vl}-->
				<li>
					<span class="fr">$vl['num']</span>
					<span class="i i$i">$i</span>
					<a href="space.php?uid=$vl['uid']" target='_blank'>$vl['username']</a>
				</li>
				<!--{eval $i++;}-->
			<!--{/loop}-->
			</ul>

		
		</div>
	</div>
	
	
	<div id='v_contact' class="opactitybg mb21">
		<div class="opactity">

			<h2 class='t'>联系方式</h2>
			
			<div class="info">
			<p><img src="/template/default/video/v_c1.jpg" alt="" /></p>
			<p>客服在线时间：每天09：00-21：00</p>
			<p><img src="/template/default/video/v_c2.jpg" alt="" /></p>
			
			</div>

		</div>
	</div>
	
	<div id='v_ofxlist' class="opactitybg mb21">
		<div class="opactity">

			<h2 class='t'>他们正在分享</h2>
			
			<ul>
			{loop $fxmember $vl}
				<li>
					<a href="space.php?uid={$vl['uid']}" target='_blank' class="img"><!--{avatar($vl['uid'])}--></a>
					<p class="t">$vl['username']</p>
					<a href="cp.php?ac=friend&op=add&uid=$vl['uid']"><strong>+</strong>加为好友</a>
				</li>
			{/loop}	
			</ul>
			
		</div>
	</div>
</div>





<!--{template footer}-->
